package com.mti.monitor.bean.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 后端服务监控实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "监控服务异常日志")
@TableName("sys_monitor_error_log")
public class SysMonitorErrorLog {

    @TableId
    @TableField("log_id")
    @ApiModelProperty(value = "logId")
    private String logId;

    //监控任务ID
    @TableField("id")
    @ApiModelProperty(value = "监控任务ID")
    private String id;

    //异常发生时间
    @TableField("execute_time")
    @ApiModelProperty(value = "异常发生时间")
    private Date executeTime;

    //失败次数
    @TableField("fail_count")
    @ApiModelProperty(value = "失败次数")
    private Integer failCount;


    //是否已发送短信
    @TableField("send_message_yn")
    @ApiModelProperty(value = "是否已发送短信")
    private Boolean sendMessageYn;


    //短信内容
    @TableField("message_content")
    @ApiModelProperty(value = "短信内容")
    private String messageContent;


    //收信人电话
    @TableField("phone_numbers")
    @ApiModelProperty(value = "phone_numbers")
    private String phoneNumbers;

}
